package org.thread.test00.demo08.t03;

/**
 * @author ZQX
 * @date 2025-03-13
 */
public class MyThread extends Thread {

    /**
     * 帐号
     */
    private Account account;

    /**
     * 用户
     */
    private String user;

    /**
     * 金额
     */
    private double money;

    public MyThread() {
    }

    public MyThread(Account account, String user, double money) {
        this.account = account;
        this.user = user;
        this.money = money;
    }

    @Override
    public void run() {
        account.getMoney(user,money);
    }
}
